package com.hsy.crm.web.domain.entity;

import com.hsy.crm.web.domain.cm.NotInit;
import com.hsy.crm.web.domain.cm.Validate;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

@Table(name = "t_stone_other_detail")
public class StoneOtherDetail extends BaseEntity {

    @Transient
    private Long storeProductId;

    @Validate
    @Column(length = 20)
    private Long stoneOtherId;

    @Validate
    @Column(length = 20)
    private Long productId;

    @Validate
    @Column(length = 20)
    private Long unitId;

    @Validate
    @Column(length = 20)
    private Long storeId;

    @NotInit
    @Validate
    @Column(length = 20)
    private Long companyId;

    @Validate
    @Column(length = 20)
    private Long number;

    @Validate
    @Column(length = 20)
    private Long price;

    public Long getStoreProductId() {
        return storeProductId;
    }

    public void setStoreProductId(Long storeProductId) {
        this.storeProductId = storeProductId;
    }

    public Long getStoneOtherId() {
        return stoneOtherId;
    }

    public void setStoneOtherId(Long stoneOtherId) {
        this.stoneOtherId = stoneOtherId;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getUnitId() {
        return unitId;
    }

    public void setUnitId(Long unitId) {
        this.unitId = unitId;
    }

    public Long getStoreId() {
        return storeId;
    }

    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }
}
